/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_hal.h"

#include "stdlib.h"
#include "string.h"
#include "stdio.h"
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define K2_Pin GPIO_PIN_2
#define K2_GPIO_Port GPIOE
#define K4_Pin GPIO_PIN_3
#define K4_GPIO_Port GPIOE
#define K3_Pin GPIO_PIN_4
#define K3_GPIO_Port GPIOE
#define K1_Pin GPIO_PIN_5
#define K1_GPIO_Port GPIOE
#define WS2812_Pin GPIO_PIN_13
#define WS2812_GPIO_Port GPIOC
#define RST_Pin GPIO_PIN_2
#define RST_GPIO_Port GPIOA
#define IO0_Pin GPIO_PIN_3
#define IO0_GPIO_Port GPIOA
#define TCSN_Pin GPIO_PIN_4
#define TCSN_GPIO_Port GPIOA
#define TSCK_Pin GPIO_PIN_5
#define TSCK_GPIO_Port GPIOA
#define TMISO_Pin GPIO_PIN_6
#define TMISO_GPIO_Port GPIOA
#define TMOSI_Pin GPIO_PIN_7
#define TMOSI_GPIO_Port GPIOA
#define WCS_Pin GPIO_PIN_12
#define WCS_GPIO_Port GPIOB
#define A27_Pin GPIO_PIN_0
#define A27_GPIO_Port GPIOD
#define A26_Pin GPIO_PIN_1
#define A26_GPIO_Port GPIOD
#define A25_Pin GPIO_PIN_3
#define A25_GPIO_Port GPIOD
#define VSW_Pin GPIO_PIN_4
#define VSW_GPIO_Port GPIOD
#define SYN_INT_Pin GPIO_PIN_6
#define SYN_INT_GPIO_Port GPIOB
#define INT_Pin GPIO_PIN_7
#define INT_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
